package com.sudworth.router

import android.content.Intent
import androidx.fragment.app.Fragment
import com.alibaba.android.arouter.core.LogisticsCenter
import com.alibaba.android.arouter.facade.Postcard

fun Postcard.navigation(fragment: Fragment, requestCode: Int) {
    LogisticsCenter.completion(this)
    val intent = Intent(fragment.requireActivity(), destination)
    intent.putExtras(extras)
    fragment.startActivityForResult(intent, requestCode)
}